﻿using Smobiler.Core;
using Smobiler.Core.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using FubiManger.Controls;

namespace FubiManger.UI
{
    partial class NewusersForm : Smobiler.Core.Controls.MobileForm
    {
        public NewusersForm() : base()
        {
            //This call is required by the SmobilerForm.
            InitializeComponent();
        }
        /// <summary>
        /// 用户集合
        /// </summary>
        public List<ms_user> uslist = new List<ms_user>();
        /// <summary>
        /// 商户ID
        /// </summary>
        public string merchantid { get; set; }
        private void panclose_Press(object sender, EventArgs e)
        {
            this.Close();
        }

        private void NewusersForm_Load(object sender, EventArgs e)
        {
            panuserview.Height = uslist.Count * 72;
            for (int i = 0; i < uslist.Count; i++)
            {
                userveiwcontrol con = new userveiwcontrol();
                con.cover = uslist[i].head_portrait;//头像
                con.username = uslist[i].username;//用户名
                con.time = uslist[i].register_time;//注册时间
                con.uid = uslist[i].id;//用户ID
                con.merchantid = merchantid;
                panuserview.Controls.Add(con);
            }
        }
    }
}